package com.applesweet.team.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class CommentExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CommentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andCommentIdIsNull() {
            addCriterion("comment_id is null");
            return (Criteria) this;
        }

        public Criteria andCommentIdIsNotNull() {
            addCriterion("comment_id is not null");
            return (Criteria) this;
        }

        public Criteria andCommentIdEqualTo(Integer value) {
            addCriterion("comment_id =", value, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdNotEqualTo(Integer value) {
            addCriterion("comment_id <>", value, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdGreaterThan(Integer value) {
            addCriterion("comment_id >", value, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("comment_id >=", value, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdLessThan(Integer value) {
            addCriterion("comment_id <", value, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdLessThanOrEqualTo(Integer value) {
            addCriterion("comment_id <=", value, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdIn(List<Integer> values) {
            addCriterion("comment_id in", values, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdNotIn(List<Integer> values) {
            addCriterion("comment_id not in", values, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdBetween(Integer value1, Integer value2) {
            addCriterion("comment_id between", value1, value2, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdNotBetween(Integer value1, Integer value2) {
            addCriterion("comment_id not between", value1, value2, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentContentIsNull() {
            addCriterion("comment_content is null");
            return (Criteria) this;
        }

        public Criteria andCommentContentIsNotNull() {
            addCriterion("comment_content is not null");
            return (Criteria) this;
        }

        public Criteria andCommentContentEqualTo(String value) {
            addCriterion("comment_content =", value, "commentContent");
            return (Criteria) this;
        }

        public Criteria andCommentContentNotEqualTo(String value) {
            addCriterion("comment_content <>", value, "commentContent");
            return (Criteria) this;
        }

        public Criteria andCommentContentGreaterThan(String value) {
            addCriterion("comment_content >", value, "commentContent");
            return (Criteria) this;
        }

        public Criteria andCommentContentGreaterThanOrEqualTo(String value) {
            addCriterion("comment_content >=", value, "commentContent");
            return (Criteria) this;
        }

        public Criteria andCommentContentLessThan(String value) {
            addCriterion("comment_content <", value, "commentContent");
            return (Criteria) this;
        }

        public Criteria andCommentContentLessThanOrEqualTo(String value) {
            addCriterion("comment_content <=", value, "commentContent");
            return (Criteria) this;
        }

        public Criteria andCommentContentLike(String value) {
            addCriterion("comment_content like", value, "commentContent");
            return (Criteria) this;
        }

        public Criteria andCommentContentNotLike(String value) {
            addCriterion("comment_content not like", value, "commentContent");
            return (Criteria) this;
        }

        public Criteria andCommentContentIn(List<String> values) {
            addCriterion("comment_content in", values, "commentContent");
            return (Criteria) this;
        }

        public Criteria andCommentContentNotIn(List<String> values) {
            addCriterion("comment_content not in", values, "commentContent");
            return (Criteria) this;
        }

        public Criteria andCommentContentBetween(String value1, String value2) {
            addCriterion("comment_content between", value1, value2, "commentContent");
            return (Criteria) this;
        }

        public Criteria andCommentContentNotBetween(String value1, String value2) {
            addCriterion("comment_content not between", value1, value2, "commentContent");
            return (Criteria) this;
        }

        public Criteria andCommentAnswerIsNull() {
            addCriterion("comment_answer is null");
            return (Criteria) this;
        }

        public Criteria andCommentAnswerIsNotNull() {
            addCriterion("comment_answer is not null");
            return (Criteria) this;
        }

        public Criteria andCommentAnswerEqualTo(String value) {
            addCriterion("comment_answer =", value, "commentAnswer");
            return (Criteria) this;
        }

        public Criteria andCommentAnswerNotEqualTo(String value) {
            addCriterion("comment_answer <>", value, "commentAnswer");
            return (Criteria) this;
        }

        public Criteria andCommentAnswerGreaterThan(String value) {
            addCriterion("comment_answer >", value, "commentAnswer");
            return (Criteria) this;
        }

        public Criteria andCommentAnswerGreaterThanOrEqualTo(String value) {
            addCriterion("comment_answer >=", value, "commentAnswer");
            return (Criteria) this;
        }

        public Criteria andCommentAnswerLessThan(String value) {
            addCriterion("comment_answer <", value, "commentAnswer");
            return (Criteria) this;
        }

        public Criteria andCommentAnswerLessThanOrEqualTo(String value) {
            addCriterion("comment_answer <=", value, "commentAnswer");
            return (Criteria) this;
        }

        public Criteria andCommentAnswerLike(String value) {
            addCriterion("comment_answer like", value, "commentAnswer");
            return (Criteria) this;
        }

        public Criteria andCommentAnswerNotLike(String value) {
            addCriterion("comment_answer not like", value, "commentAnswer");
            return (Criteria) this;
        }

        public Criteria andCommentAnswerIn(List<String> values) {
            addCriterion("comment_answer in", values, "commentAnswer");
            return (Criteria) this;
        }

        public Criteria andCommentAnswerNotIn(List<String> values) {
            addCriterion("comment_answer not in", values, "commentAnswer");
            return (Criteria) this;
        }

        public Criteria andCommentAnswerBetween(String value1, String value2) {
            addCriterion("comment_answer between", value1, value2, "commentAnswer");
            return (Criteria) this;
        }

        public Criteria andCommentAnswerNotBetween(String value1, String value2) {
            addCriterion("comment_answer not between", value1, value2, "commentAnswer");
            return (Criteria) this;
        }

        public Criteria andCommentIdsIsNull() {
            addCriterion("comment_ids is null");
            return (Criteria) this;
        }

        public Criteria andCommentIdsIsNotNull() {
            addCriterion("comment_ids is not null");
            return (Criteria) this;
        }

        public Criteria andCommentIdsEqualTo(Integer value) {
            addCriterion("comment_ids =", value, "commentIds");
            return (Criteria) this;
        }

        public Criteria andCommentIdsNotEqualTo(Integer value) {
            addCriterion("comment_ids <>", value, "commentIds");
            return (Criteria) this;
        }

        public Criteria andCommentIdsGreaterThan(Integer value) {
            addCriterion("comment_ids >", value, "commentIds");
            return (Criteria) this;
        }

        public Criteria andCommentIdsGreaterThanOrEqualTo(Integer value) {
            addCriterion("comment_ids >=", value, "commentIds");
            return (Criteria) this;
        }

        public Criteria andCommentIdsLessThan(Integer value) {
            addCriterion("comment_ids <", value, "commentIds");
            return (Criteria) this;
        }

        public Criteria andCommentIdsLessThanOrEqualTo(Integer value) {
            addCriterion("comment_ids <=", value, "commentIds");
            return (Criteria) this;
        }

        public Criteria andCommentIdsIn(List<Integer> values) {
            addCriterion("comment_ids in", values, "commentIds");
            return (Criteria) this;
        }

        public Criteria andCommentIdsNotIn(List<Integer> values) {
            addCriterion("comment_ids not in", values, "commentIds");
            return (Criteria) this;
        }

        public Criteria andCommentIdsBetween(Integer value1, Integer value2) {
            addCriterion("comment_ids between", value1, value2, "commentIds");
            return (Criteria) this;
        }

        public Criteria andCommentIdsNotBetween(Integer value1, Integer value2) {
            addCriterion("comment_ids not between", value1, value2, "commentIds");
            return (Criteria) this;
        }

        public Criteria andConsumerIdIsNull() {
            addCriterion("consumer_id is null");
            return (Criteria) this;
        }

        public Criteria andConsumerIdIsNotNull() {
            addCriterion("consumer_id is not null");
            return (Criteria) this;
        }

        public Criteria andConsumerIdEqualTo(Integer value) {
            addCriterion("consumer_id =", value, "consumerId");
            return (Criteria) this;
        }

        public Criteria andConsumerIdNotEqualTo(Integer value) {
            addCriterion("consumer_id <>", value, "consumerId");
            return (Criteria) this;
        }

        public Criteria andConsumerIdGreaterThan(Integer value) {
            addCriterion("consumer_id >", value, "consumerId");
            return (Criteria) this;
        }

        public Criteria andConsumerIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("consumer_id >=", value, "consumerId");
            return (Criteria) this;
        }

        public Criteria andConsumerIdLessThan(Integer value) {
            addCriterion("consumer_id <", value, "consumerId");
            return (Criteria) this;
        }

        public Criteria andConsumerIdLessThanOrEqualTo(Integer value) {
            addCriterion("consumer_id <=", value, "consumerId");
            return (Criteria) this;
        }

        public Criteria andConsumerIdIn(List<Integer> values) {
            addCriterion("consumer_id in", values, "consumerId");
            return (Criteria) this;
        }

        public Criteria andConsumerIdNotIn(List<Integer> values) {
            addCriterion("consumer_id not in", values, "consumerId");
            return (Criteria) this;
        }

        public Criteria andConsumerIdBetween(Integer value1, Integer value2) {
            addCriterion("consumer_id between", value1, value2, "consumerId");
            return (Criteria) this;
        }

        public Criteria andConsumerIdNotBetween(Integer value1, Integer value2) {
            addCriterion("consumer_id not between", value1, value2, "consumerId");
            return (Criteria) this;
        }

        public Criteria andConsumerNumberIsNull() {
            addCriterion("consumer_number is null");
            return (Criteria) this;
        }

        public Criteria andConsumerNumberIsNotNull() {
            addCriterion("consumer_number is not null");
            return (Criteria) this;
        }

        public Criteria andConsumerNumberEqualTo(Integer value) {
            addCriterion("consumer_number =", value, "consumerNumber");
            return (Criteria) this;
        }

        public Criteria andConsumerNumberNotEqualTo(Integer value) {
            addCriterion("consumer_number <>", value, "consumerNumber");
            return (Criteria) this;
        }

        public Criteria andConsumerNumberGreaterThan(Integer value) {
            addCriterion("consumer_number >", value, "consumerNumber");
            return (Criteria) this;
        }

        public Criteria andConsumerNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("consumer_number >=", value, "consumerNumber");
            return (Criteria) this;
        }

        public Criteria andConsumerNumberLessThan(Integer value) {
            addCriterion("consumer_number <", value, "consumerNumber");
            return (Criteria) this;
        }

        public Criteria andConsumerNumberLessThanOrEqualTo(Integer value) {
            addCriterion("consumer_number <=", value, "consumerNumber");
            return (Criteria) this;
        }

        public Criteria andConsumerNumberIn(List<Integer> values) {
            addCriterion("consumer_number in", values, "consumerNumber");
            return (Criteria) this;
        }

        public Criteria andConsumerNumberNotIn(List<Integer> values) {
            addCriterion("consumer_number not in", values, "consumerNumber");
            return (Criteria) this;
        }

        public Criteria andConsumerNumberBetween(Integer value1, Integer value2) {
            addCriterion("consumer_number between", value1, value2, "consumerNumber");
            return (Criteria) this;
        }

        public Criteria andConsumerNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("consumer_number not between", value1, value2, "consumerNumber");
            return (Criteria) this;
        }

        public Criteria andConsumerDateIsNull() {
            addCriterion("consumer_date is null");
            return (Criteria) this;
        }

        public Criteria andConsumerDateIsNotNull() {
            addCriterion("consumer_date is not null");
            return (Criteria) this;
        }

        public Criteria andConsumerDateEqualTo(Date value) {
            addCriterionForJDBCDate("consumer_date =", value, "consumerDate");
            return (Criteria) this;
        }

        public Criteria andConsumerDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("consumer_date <>", value, "consumerDate");
            return (Criteria) this;
        }

        public Criteria andConsumerDateGreaterThan(Date value) {
            addCriterionForJDBCDate("consumer_date >", value, "consumerDate");
            return (Criteria) this;
        }

        public Criteria andConsumerDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("consumer_date >=", value, "consumerDate");
            return (Criteria) this;
        }

        public Criteria andConsumerDateLessThan(Date value) {
            addCriterionForJDBCDate("consumer_date <", value, "consumerDate");
            return (Criteria) this;
        }

        public Criteria andConsumerDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("consumer_date <=", value, "consumerDate");
            return (Criteria) this;
        }

        public Criteria andConsumerDateIn(List<Date> values) {
            addCriterionForJDBCDate("consumer_date in", values, "consumerDate");
            return (Criteria) this;
        }

        public Criteria andConsumerDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("consumer_date not in", values, "consumerDate");
            return (Criteria) this;
        }

        public Criteria andConsumerDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("consumer_date between", value1, value2, "consumerDate");
            return (Criteria) this;
        }

        public Criteria andConsumerDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("consumer_date not between", value1, value2, "consumerDate");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto1IsNull() {
            addCriterion("consumer_photo1 is null");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto1IsNotNull() {
            addCriterion("consumer_photo1 is not null");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto1EqualTo(String value) {
            addCriterion("consumer_photo1 =", value, "consumerPhoto1");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto1NotEqualTo(String value) {
            addCriterion("consumer_photo1 <>", value, "consumerPhoto1");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto1GreaterThan(String value) {
            addCriterion("consumer_photo1 >", value, "consumerPhoto1");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto1GreaterThanOrEqualTo(String value) {
            addCriterion("consumer_photo1 >=", value, "consumerPhoto1");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto1LessThan(String value) {
            addCriterion("consumer_photo1 <", value, "consumerPhoto1");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto1LessThanOrEqualTo(String value) {
            addCriterion("consumer_photo1 <=", value, "consumerPhoto1");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto1Like(String value) {
            addCriterion("consumer_photo1 like", value, "consumerPhoto1");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto1NotLike(String value) {
            addCriterion("consumer_photo1 not like", value, "consumerPhoto1");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto1In(List<String> values) {
            addCriterion("consumer_photo1 in", values, "consumerPhoto1");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto1NotIn(List<String> values) {
            addCriterion("consumer_photo1 not in", values, "consumerPhoto1");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto1Between(String value1, String value2) {
            addCriterion("consumer_photo1 between", value1, value2, "consumerPhoto1");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto1NotBetween(String value1, String value2) {
            addCriterion("consumer_photo1 not between", value1, value2, "consumerPhoto1");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto2IsNull() {
            addCriterion("consumer_photo2 is null");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto2IsNotNull() {
            addCriterion("consumer_photo2 is not null");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto2EqualTo(String value) {
            addCriterion("consumer_photo2 =", value, "consumerPhoto2");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto2NotEqualTo(String value) {
            addCriterion("consumer_photo2 <>", value, "consumerPhoto2");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto2GreaterThan(String value) {
            addCriterion("consumer_photo2 >", value, "consumerPhoto2");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto2GreaterThanOrEqualTo(String value) {
            addCriterion("consumer_photo2 >=", value, "consumerPhoto2");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto2LessThan(String value) {
            addCriterion("consumer_photo2 <", value, "consumerPhoto2");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto2LessThanOrEqualTo(String value) {
            addCriterion("consumer_photo2 <=", value, "consumerPhoto2");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto2Like(String value) {
            addCriterion("consumer_photo2 like", value, "consumerPhoto2");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto2NotLike(String value) {
            addCriterion("consumer_photo2 not like", value, "consumerPhoto2");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto2In(List<String> values) {
            addCriterion("consumer_photo2 in", values, "consumerPhoto2");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto2NotIn(List<String> values) {
            addCriterion("consumer_photo2 not in", values, "consumerPhoto2");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto2Between(String value1, String value2) {
            addCriterion("consumer_photo2 between", value1, value2, "consumerPhoto2");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto2NotBetween(String value1, String value2) {
            addCriterion("consumer_photo2 not between", value1, value2, "consumerPhoto2");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto3IsNull() {
            addCriterion("consumer_photo3 is null");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto3IsNotNull() {
            addCriterion("consumer_photo3 is not null");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto3EqualTo(String value) {
            addCriterion("consumer_photo3 =", value, "consumerPhoto3");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto3NotEqualTo(String value) {
            addCriterion("consumer_photo3 <>", value, "consumerPhoto3");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto3GreaterThan(String value) {
            addCriterion("consumer_photo3 >", value, "consumerPhoto3");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto3GreaterThanOrEqualTo(String value) {
            addCriterion("consumer_photo3 >=", value, "consumerPhoto3");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto3LessThan(String value) {
            addCriterion("consumer_photo3 <", value, "consumerPhoto3");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto3LessThanOrEqualTo(String value) {
            addCriterion("consumer_photo3 <=", value, "consumerPhoto3");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto3Like(String value) {
            addCriterion("consumer_photo3 like", value, "consumerPhoto3");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto3NotLike(String value) {
            addCriterion("consumer_photo3 not like", value, "consumerPhoto3");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto3In(List<String> values) {
            addCriterion("consumer_photo3 in", values, "consumerPhoto3");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto3NotIn(List<String> values) {
            addCriterion("consumer_photo3 not in", values, "consumerPhoto3");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto3Between(String value1, String value2) {
            addCriterion("consumer_photo3 between", value1, value2, "consumerPhoto3");
            return (Criteria) this;
        }

        public Criteria andConsumerPhoto3NotBetween(String value1, String value2) {
            addCriterion("consumer_photo3 not between", value1, value2, "consumerPhoto3");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}